package com.qiaofang.applet.service.property.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@Document(collection = "property_estate")
@ApiModel("楼盘表")
@NoArgsConstructor
public class Estate extends BaseDomain {

    @ApiModelProperty("区县唯一标识")
    private String districtUuid;

    @ApiModelProperty("区县名称")
    private String districtName;

    @ApiModelProperty("商圈唯一标识")
    private String areaUuid;

    @ApiModelProperty("商圈名称")
    private String areaName;

    @ApiModelProperty("楼盘唯一UUID")
    private String estateUniqueUuid;

    @ApiModelProperty("楼盘UUID")
    private String estateUuid;

    @ApiModelProperty("楼盘名称")
    private String estateName;

    @ApiModelProperty("均价")
    private BigDecimal sellPrice;

    @ApiModelProperty("投放年代")
    private String completeYear;

    @ApiModelProperty("产权年数")
    private String ownYear;

    @ApiModelProperty("产权描述")
    private String ownedType;

    @ApiModelProperty("详细地址")
    private String fullAddress;

    @ApiModelProperty("物业公司")
    private String managementCompany;

    @ApiModelProperty("物业公司电话")
    private String managementCompanytel;

    @ApiModelProperty("管理费")
    private String managementFee;

    @ApiModelProperty("经度")
    private Double lng;

    @ApiModelProperty("纬度")
    private Double lat;

    @ApiModelProperty("建筑类型")
    private String propertyUsage;

    @ApiModelProperty("小区类型")
    private String propertyType;

    @ApiModelProperty("小区图片")
    private String photoUrl;

    @ApiModelProperty("结构")
    private String framework;

    @ApiModelProperty("建筑外墙")
    private String surface;

    @ApiModelProperty("别名")
    private String alias;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("关联更新 true:已更新关联数据 false:未更新关联数据")
    private Boolean relationUpdate;

    @ApiModelProperty("在售套数")
    private Integer saleNum;

    @ApiModelProperty("在租套数")
    private Integer rentNum;

    @ApiModelProperty("是否删除")
    private Boolean deleted;

    @ApiModelProperty("总户数")
    private Integer totalRoomCount;

    /** #KAD-8225 小程序楼盘同步新增字段*/
    @ApiModelProperty("开发商")
    private String developer;

    @ApiModelProperty("土地地号")
    private String landNo;

    @ApiModelProperty("物业主")
    private String estateOwner;

    @ApiModelProperty("物业主电话")
    private String estateOwnerTel;

    @ApiModelProperty("所属项目")
    private String belongProject;

    @ApiModelProperty("概要地址")
    private String shortAddress;

    @ApiModelProperty("最后解析日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastSyncDate;

    @ApiModelProperty("有无封面图")
    private Boolean coverPicture;
}
